package com.usian.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;


public  class BaseServiceImpl<M extends BaseMapper<T>,T> extends ServiceImpl {
    public ResponseResult errorResult=ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);
    public ResponseResult noData=ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST);
    public ResponseResult tokenInvalid=ResponseResult.errorResult(AppHttpCodeEnum.TOKEN_INVALID);
    public ResponseResult Sucess=ResponseResult.errorResult(AppHttpCodeEnum.SUCCESS);
    public ResponseResult NEED_LOGIN= ResponseResult.errorResult(AppHttpCodeEnum.NEED_LOGIN);
}
